package com.alibaba.cloud.base.business.log.domain;

import io.swagger.v3.oas.annotations.media.Schema;

import java.io.Serializable;

@Schema(title = "日志记录")
public class LogRecord implements Serializable {

    @Schema(name = "日志主键", type = "String", required = true)
    private String id;

    @Schema(name = "日志内容", type = "String", required = true)
    private String content;

    @Schema(name = "用户ID", type = "String", required = true)
    private String userId;

    @Schema(name = "用户名称", type = "String", required = true)
    private String userName;

    @Schema(name = "记录时间", type = "timestamp")
    private String logTime;

    @Schema(name = "操作类型", type = "String")
    private String operateType;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getLogTime() {
        return logTime;
    }

    public void setLogTime(String logTime) {
        this.logTime = logTime;
    }

    public String getOperateType() {
        return operateType;
    }

    public void setOperateType(String operateType) {
        this.operateType = operateType;
    }

    @Override
    public String toString() {
        return "LogRecord{" +
                "id='" + id + '\'' +
                ", content='" + content + '\'' +
                ", userId='" + userId + '\'' +
                ", userName='" + userName + '\'' +
                ", logTime='" + logTime + '\'' +
                ", operateType='" + operateType + '\'' +
                '}';
    }
}
